﻿using System;
using System.Data.Linq.Mapping;
using CoreLibrary.Date;

namespace IBBI.DataBase.Persistent {

    [Table(Name = "ACCOUNT_PROFILE")]
    public class UserProfile {

        [Column(Name = "ACCOUNT_ID", IsPrimaryKey = true)]
        public int AccountId         { get; set; }

        [Column(Name = "QQ")]
        public string QQ             { get; set; }

        [Column(Name = "WEIBO")]
        public string Weibo          { get; set; }

        [Column(Name = "WECHAT")]
        public string Wechat         { get; set; }

        [Column(Name = "DATE_BIRTH")]
        public DateTime? DateBirth   { get; set; }

        [Column(Name = "DATE_CREATED")]
        public DateTime DateCreated  { get; set; }

        [Column(Name = "DATE_UPDATED")]
        public DateTime DateUpdated  { get; set; }

        [Column(Name = "Data")]
        public string Data           { get; set; }

        public UserProfile() {
            DateCreated = DateTime.UtcNow;
            DateUpdated = DateUtil.Epoch;
        }

    }

}